<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <ul class="list">
    <li class="item">1</li>
    <li class="item">2</li>
    <li class="item">3</li>
    <li class="item">4</li>
  </ul>
  <script>
    const list = document.querySelector('.list')
    const child = document.createElement('li');
    const brother = document.querySelectorAll('.item')[0].nextElementSibling
    console.log(brother);
    child.innerText = '05';
    document.querySelector('.list').appendChild(child);

    list.onclick = function (e) {
      console.log(e.target.closest('li').innerText);
    }
  </script>
</body>
</html>